How to solve the line feed in textarea? How to solve the line feed problem in textarea? This is not especially true if you want to use the editor. because the text is submitted by user input, you can only wrap the text in textarea from the security
In this article, I will introduce some solutions that cannot be used to wrap the content submitted by textarea. If you have any need, please refer to when we submit data through textarea on the page, the content we input will be processed as a piece
if you use the attribute word width (Cols) and number of rows (rows) of textarea to control the size of textarea, in IE and FF, the number of words in each line and the number of lines in the text are not the same, and IE has a scroll bar by default
Transferred from: http://segmentfault.com/q/1010000002677808Writes the mobile web, defines a textarea, and adds some hints to the placeholder. Because some phone screens are different, the content of placeholder is not wrapped, but beyond the screen
Today, I have studied a little about the function of Automatically increasing textarea with input content. google has referenced some implementation methods, most of which rely on scrollHeight (not W3C standard, introduced by IE ), keyup event. It
Today, I have slightly studied the function of Automatically increasing textarea with input content, and I have provided some implementation methods through Google.
Most of them are completed by scrollheight (not W3C standard, introduced by IE)
TextArea Line Change
TextArea is saved to the MySQL database when using inline editing in the DataGrid in Easyui \ nEnter a return character in the textarea the value in the JS read textarea has \ r \ n then to the business layer conversion to
First, it's not a simple question.
First, take the value:
$ ("#textarea"). Text ();//ReadThe latest test found in Firefox or Chrome read textarea value, ie normal.
It is then modified to:
$ ("#textarea"). Val ();Problem solved, but when searching,
In textarea, press enter to generate the Escape Character \ r \ n. In some cases, we do not need these two escape characters, that is, clearing textarea. The following method is not empty, but can achieve similar results.
If you press enter in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.